module.exports = (app) => {
  const { router, controller } = app;
  router.post("/user", controller.user.reg);
  router.post("/user/login", controller.user.login);
  router.get("/user/info", controller.user.info);
  router.get("/user/list", controller.user.list);
  router.put("/user/edit", controller.user.edit);
  router.del("/user/logout", controller.user.logout);
};
